﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace EzDesk.Utility.Web.Extensions
{
    //public static class ViewPageExtensions
    //{
    //    private static EzApiClient apiClient = new EzApiClient(EzDeskAppApiHelper.AppSessionHelper.GetCurrentSession());

    //    public static UserProfile CurrentUserProfile(this ViewPage page)
    //    {
    //        UserProfile profile = null;
    //        if (page.User.Identity.IsAuthenticated)
    //        {
    //            profile = apiClient.GetUserProfileByUserName(EzDeskAppApiHelper.AppSessionHelper.GetCurrentSession().UserId);
    //        }
    //        return profile;
    //    }
    //}
}
